package cn.javasm.entity.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @version: 0.1
 */
@Data
public class BaseEntity implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long createBy;
    @JsonFormat
    private LocalDateTime createTime;

    private Long updateBy;
    @JsonFormat
    private LocalDateTime updateTime;

}
